<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>
    <link href="${path}/resources/admin/css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
    <script src="${path}/resources/admin/js/jquery-1.10.1.min.js"></script>

</head>
<body>
<div id="Header">
    <img  src="${path}${p2p_get_global('logo')}" alt=""
          style="width: 200px;height: 76px" />
    <div class="user">
        <div>
            <p>欢迎登录，管理员</p>
            <a href="${path}/a/admin/logout.aspx"><img
                    src="${path}/resources/admin/images/common/ico07.gif" width="20"
                    height="20" alt=""></a>
        </div>
        <div>
            <p>系统时间：</p>
            <p class="systime" >${.now}</p>
        </div>


    </div>
    <nav>
        <div id="Navi" style="">
            <ul style="margin-left: 160px;">
			[#list Session.topMenus as module]
				[#if module.pId==0]
                    <li class="nav0${module.id}"><a target="leftMenuFrame"
                                                    href="${path}/admin/rbac/findchild.aspx?id=${module.id}"
                                                    title=${module.name}>${module.name}</a></li>
				[/#if]
			[/#list]
            </ul>
        </div>
    </nav>
</div>

<!-- 头部 结束 -->
</body>

<script type="text/javascript">
    $(function() {
        //服务器时间获取$
        var stime = $('.systime').text();
        var timestamp = parseInt(new Date(stime).getTime());
        var UpdateSysTime = function() {
            var d = new Date(timestamp), yyyy = d.getFullYear(), MM = d.getMonth() + 1, dd = d
                    .getDate(), hh = d.getHours(), mm = d.getMinutes(), ss = d
                    .getSeconds();
            MM = MM < 10 ? "0" + MM : MM;
            dd = dd < 10 ? "0" + dd : dd;
            hh = hh < 10 ? "0" + hh : hh;
            mm = mm < 10 ? "0" + mm : mm;
            ss = ss < 10 ? "0" + ss : ss;
            $(".systime").html([ yyyy, "-", MM, "-", dd, " ", hh, ":", mm, ":", ss ].join(""));
            timestamp = timestamp + 1000;
        };
        UpdateSysTime();
        setInterval(function() {
            UpdateSysTime();
        }, 1000);
    });

</script>
</html>